package com.yubest.junit.reflect;

import lombok.Getter;
import lombok.Setter;

/**
 * 反射对象
 *
 * @Author: hweiyu
 * @Date: 2022/10/28 17:58
 */
@Getter
@Setter
public class ReflectBean {

    private int a = 1;

    private static int b = 2;

    private static final int c = 3;

    private static final Integer d = 4;

    public void show() {
        System.out.println(String.format("a: %s, b: %s, c: %s, d: %s", a, b, c, d));
    }

    @Override
    public String toString() {
        return String.format("{a=%s,b=%s,c=%s,d=%s}", a, b, c, d);
    }
}
